<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
class Sales extends Model
{
	//指定表名
	protected $table='sale';
	//指定id
	protected $primaryKey ='id';
	//批量赋值

	public $timestamps= false;

   	

	public function specification(){
		return $this->hasOne('App\Tags','id','specification_id');
	}
}
